arm: p2m: Prevent redundant icache flushes
authorPunit Agrawal <punit.agrawal@arm.com>
Fri, 26 May 2017 11:14:06 +0000 (12:14 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 6 Jun 2017 18:49:26 +0000 (11:49 -0700)
commit1a0c3e3e28d6cd072734990efcaaec608bf152b1
treedf79220d33ca2325f93c22da66fd363cadcf162f
parent54b8651066e82f04db9d9e5b0cc02c26d39ae763
arm: p2m: Prevent redundant icache flushes

When toolstack requests flushing the caches, flush_page_to_ram() is
called for each page of the requested domain. This needs to unnecessary
icache invalidation operations.

Let's take the responsibility of performing icache operations and use
the recently introduced flag to prevent redundant icache operations by
flush_page_to_ram().

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c